API reference
cURL
curl --request POST \ --url https://www.ailabapi.com/api/portrait/effects/face-fusion \ --header 'Content-Type: multipart/form-data' \ --header 'ailabapi-api-key: <api-key>' \ --form 'source_similarity=<string>' \ --form image_target=@example-file \ --form image_template=@example-file
{ "request_id": "", "log_id": "", "error_code": 0, "error_code_str": "", "error_msg": "", "error_detail": { "status_code": 200, "code": "", "code_message": "", "message": "" }, "data": { "image": "" } }
API Key for authentication
Target image.
Template images.
Face similarity, where a higher numerical value indicates greater similarity. <li>0: Consistent with the original template.</li> <li>1: Maximum similarity with the target image.</li>
0
1
Success
The response is of type object.
object